package modelo;

//@Abraham debera sensibilizarle para guardarse en la sesión
public class User {
   
    private int id;
    private String username;
    private String password;
    private String name;    
    private String address;
    private boolean isAdmin;
    private String datosDePago;
    private String formaDePago;

    public User(int id, String username, String password, String name,
             String address, boolean isAdmin, String formaDePago, String datosDePago) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.name = name;        
        this.address = address;
        this.isAdmin = isAdmin;
        this.formaDePago = formaDePago;
        this.datosDePago = datosDePago;
    }
    
    public User(String username, String password, String name,
             String address, String formaDePago, String datosDePago) {        
        this.id = 0;
        this.username = username;
        this.password = password;
        this.name = name;        
        this.address = address;
        this.isAdmin = false;
        this.formaDePago = formaDePago;
        this.datosDePago = datosDePago;
    }

    public String getDireccion() {
        return address;
    }

    public String getDatosDePago() {
        return datosDePago;
    }

    public String getFormaDePago() {
        return formaDePago;
    }

    public int getId() {
        return id;
    }

    public boolean isAdmin() {
        return isAdmin;
    }

    public String getNombre() {
        return name;
    }

    public String getPassword() {
        return password;
    }

    public String getUsername() {
        return username;
    }

    public void setId(int id) {
        this.id = id;
    }

}
